home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000263_a_pyles@yahoo.com_Thu Jul 12 16:12:26 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
64 lines
Article: 12594 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!paloalto-snf1.gtei.net!news.gtei.net!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: a_pyles@yahoo.com (Andy Pyles)
Newsgroups: comp.protocols.kermit.misc
Subject: ssh script example
Date: 12 Jul 2001 12:49:29 -0700
Organization: http://groups.google.com/
Lines: 46
Message-ID: <a695e0e6.0107121149.6d5ab7bb@posting.google.com>
NNTP-Posting-Host: 63.150.57.150
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 994967370 21391 127.0.0.1 (12 Jul 2001 19:49:30 GMT)
X-Complaints-To: groups-support@google.com
NNTP-Posting-Date: 12 Jul 2001 19:49:30 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12594
Hi,
I'm using c-kermit 7.0 on a redhat 6.2 linux machine.
and trying to script a simple ssh login script.
here's what I have so far:
~~~~~~~~~~~~~~~~~~~~~~~
#!/usr/bin/kermit +
; expect script that will automatically upgrade telverse ui files on
; remote system. using the ssh protocol.
; usage uiupgrade username hostname password
;set prefixing all
set transaction-log verbose
log session session.log
set host /pty ssh -l \%1 \%2
if fail out failed!!
input 10 password:
if fail out no password prompt!
out \%3\13
input 10 ]$
out touch /tmp/blaHH\13
input 10 ]$
out exit\13
lineout ~.
logout
exit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ok, so the problem I have is when I run this script I just get the following:
[andy@dev1 images]$ ./ssh_kermit.ker andy dev1 password
no password prompt!password
touch /tmp/blaHH
[andy@dev1 images]$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
any clue on what I'm doing wrong here?
Thanks!
-Andy